var vm = new Vue({
    el: '#app',
	data:{
        visible: false,
		user:{},
        form:{
            port:'',
            type:''
        },
        ports: [{
            value: 'GF',
            label: '佛港'
        },{
            value: 'QT',
            label: '其它'
        }]
	},
	methods: {
		btnClick: function () {
            var iframe = $('#queryIframe');
            iframe.attr("src",'http://www.56cyt.com/myms/rcktc.jsp?keyword=TEMU3203120');//出口拖车
            //进口//http://www.56cyt.com/myms/rjk2.jsp?keyword=TCKU4788988
            iframe.attr('onload',function(){

                    console.log("Local iframe is now loaded.");
                    var obj=document.getElementById('queryIframe').contentWindow;
                    var ifmObj=obj.document.getElementById("btnOk");
            });



            // sendAjax('http://www.baidu.com',{a:1,b:2},function(data){
            	// console.log(data);
			// });
		}
	},
	created: function(){
		//this.getUser();
	},
    updated: function(){
        //路由
        // var router = new Router();
        // router.start();
    }
});

